package com.sirdc.modules.sys.web.home;

import com.sirdc.modules.core.web.JsonBaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping(value = "/home")
public class HomeController extends JsonBaseController {
    @Override
    protected String getView(String view) {
        return "/home/"+view;
    }

    @RequestMapping(value = "/", method = RequestMethod.GET)
    public String goIndex(){
        return getView("index");
    }
}
